
import Student from "../practice_9/student.js";
import Person from "../practice_9/person.js";

class Class{
    constructor(number){
        this.number = number;
    }
    getDisplayName(){
        return `Class ${this.number}`;
    }
    assignLeader(student){
        if(this.number == student.klass.number){
            this.leader = student;
        }else{
            console.log('It is not one of us.');
            return `It is not one of us.`;
        }
    }  
    appendMember(student){
        student.klass = this;
    }
    }

module.exports = Class;